<?php
    $excluir = $_POST['executar'];
    $id = $_POST['id_imovel'];

    if($excluir == 'Excluir'){
        include_once("controle_imovel.php");
        $controleImovel = new ControleImovel();
        $controleImovel->remover($id);
        
    }
?>
